<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>父相对子绝对</title>
		<style>
			#main{
				height: 5600px;
				width: 4000px;
				background-color: aqua;
				position: relative;
			}
			#main #adv{
				width: 130px;
				border: 4px solid red;
				position: absolute;
				top: 0;
				right: 0;
				opacity: 0.3;
			}
			
		</style>
	</head>
	<body>
		<div>
			<img src="../image/icon.png"/>
		</div>
		<div id="main">
			<div id="adv">
				<a href="#">加我微信</a>
			</div>
		</div>
	</body>
</html>